package com.xiaoyg.string;

public class rotateString {

    public static void main(String[] args) {
        String A = "abcde", B = "'cdeab'";

        

        System.out.printf(""+rotateString(A,B));
    }

    public static boolean rotateString(String s1,String s2){
        return s1.length() == s2.length() && (s1+s1).contains(s2);
    }

}
